-
Notifications
You must be signed in to change notification settings - Fork 121
[HACK][Merchant AI key] Add feature flag & render settings row if eligible #15404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 maybe the HACK Week p2 can be linked in the PR or the linked main GitHub issue?
Switch allowMerchantAIAPIKey to true
How about setting the feature flag to return buildConfig == .localDeveloper || buildConfig == .alpha for easier developement & PR testing?
Tapping on it will render an empty view, and log the hub_menu_ai_settings_tapped event
There's already an event hub_menu_option_tapped with option: ai property logged by default. WDYT about just using this event, with the option value maybe more specific like ai-settings?
# Conflicts: # WooCommerce/WooCommerce.xcodeproj/project.pbxproj
Done!
Yeah, I was wary of this because is an empty view for now 😅 . Updated here: 780b945
Oh, better! Updated: 89f9f4a |
Description
As part (1) of cleaning up and submitting this HACK week project, this PR adds a feature flag and renders the AI settings row under the app's Menu.
Testing information
allowMerchantAIAPIKeytotrueAI Settingsrow:hub_menu_ai_settings_tappedevent:RELEASE-NOTES.txtif necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: